             package com.java.diagnostics.visualizer.recommender.balanced;
             
             import com.java.diagnostics.visualizer.data.AggregateData;
             import com.java.diagnostics.visualizer.data.DataPoint;
             import com.java.diagnostics.visualizer.data.TupleData;
             import com.java.diagnostics.visualizer.recommender.Recommendation;
             import com.java.diagnostics.visualizer.recommender.RecommendationBase;
             import com.java.diagnostics.visualizer.recommender.util.RecommendationLabels;
             
             public class ArrayletleafObservation
               extends RecommendationBase
               implements Recommendation
             {
               public void recommend(AggregateData data)
               {
                 TupleData arrayletleaf = data.getTupleData("VGCLabels.arraylet.leaf");
                 
                 if (arrayletleaf != null) {
                   DataPoint[] points = arrayletleaf.getDataPoints();
                   int total = 0;
                   for (DataPoint point : points) {
                     if (point.getRawY() > 0.0D) {
                       total++;
                     }
                   }
                   
                   if (total > points.length * 0.05D) {
                     addComment(data, RecommendationLabels.ARRAYLETLEAF_OBSERVATION);
                   }
                 }
               }
             }


